<!-- 产品图 -->
<main class="banner">
    <ul class="swiper-wrapper">
    </ul>
    <section class="spot"></section>
</main>

<!-- 基本信息 -->
<section class="essential">
    <h1>{{goodDetail.title}}</h1>
    <section class="huankuan">
        <i>专柜价：{{price | currency:'￥'}}<font style="float: right;border: 1px solid red;padding: 0 10px;" ng-click="addToCar()">加入购物车</font></i>
         <em ng-if="!haspriceflag">补：￥{{hasprice|number:2}}</em>

          <em  ng-if="haspriceflag">免费换此款</em>
          <em  ng-if="haspriceflag">剩余金额：￥{{hasprice|number:2}}</em>
          <i  ng-if="haspriceflag" style="font-size: 0.4rem">注：剩余金额换款后直接存入您的账户余额</i>
    </section>

    <section class="essential_main">
        <em style="font-size: 80%;" ng-if="haspriceflag">余额还可以：
            <a style="border: 1px solid #000;color:red;font-size: 140%;" ng-click="selectMore()">选多几款</a>
        </em>
        <span>
        	<i>评价({{goodcommentcount}})</i>
        	<i>库存({{stocknum}})</i>
        </span>
    </section>
    <ul>
        <li>
            <em>颜色分类：</em>
        	<span class="colour"  >
                <toggle-colors e-obj="goodChilds" stock-num="stocknum" haspriceflag="haspriceflag" cartotalprice="carData.cartotalprice" evaluateprice="evaluatePrice" gooddetail-num="gooddetail.num" exprice="exprice" price="price" hasprice="hasprice" totalprice="totalprice" goodchild-id="gooddetail.goodchildId" >
                    <a  href="" ng-repeat="item in goodChilds" ng-class="{true:'hover'}[item.flag]" attr="{{$index}}">{{item.color}}{{item.weight?"【"+item.weight+"】":""}}{{item.material}} {{item.mainstorespec}}{{item.handsize?"【"+item.handsize+"】":""}}{{item.necklace_len?"【"+item.necklace_len+"】":""}}{{item.bracelet_len?"【约"+item.bracelet_len+"】":""}}</a>
                </toggle-colors>
            </span>
        </li>
        <li>
            <em>数量：</em>
           	<span class="amount">
            	<a class="icon"  ng-click="minusNum()">&#xe603;</a>
                <input  type="text" ng-model="gooddetail.num" ng-change="changeNum()">
                <a class="iconfont icon-add"  ng-click="addNum()"></a>
           	</span>
        </li>
    </ul>
</section>

<!-- 评论 -->
<section class="comment_list">
    <a class="title" href="javascript:void(0);">
        <em>商品评价</em>
        <i class="icon">&#xe722;</i>
    </a>
    <section class="comment_list_main" ng-repeat="item in goodcomments.pagingList">
    	<span class="title">
        	<img ng-src="{{item.headimgurl}}"/>
        	<em>{{item.nickname}}</em>
            <i>{{item.create_time|date:'yyyy.MM.dd'}}</i>
        </span>
        <p>{{item.content}}</p>
    </section>
    <a class="more" href="" ng-if="goodcomments.pagingList.length==0">暂无评价</a>
    <a class="more" href="" ng-if="goodcomments.pagingList.length>0">查看全部评价<i class="icon">&#xe722;</i></a>
</section>

<!-- 商品详情 -->
<section class="depict_week" style="margin-bottom: 110px;">
    <span class="title">商品详情</span>
    <span class="picture" ng-bind-html="goodDetail.description"></span>
</section>

<footer class="add_pay">
    <span class="check">
        <a style="color: red;width: 60%;float: right;">预选合计：￥{{totalprice|number:2}}</a>
    </span>
    <a class="cart" ng-click="settleAccounts()"  ng-if="!fixorderno">结算<i>({{carData.cartotalnum}})</i></a>
    <a class="cart" ng-href="#/checkReportfor{{fixorderType}}with{{orderno}}"  ng-if="fixorderno">结算<i>({{carData.cartotalnum}})</i></a>
</footer>
<!-- FOOTER -->
<footer class="add_submit">
	<span class="check">
        <a class="back" ng-style="menuWidth" ng-click="back()">上一步</a>
        <a ng-style="menuWidth" > <i class="title">我的余额</i><em >{{balance|currency:"￥"}}</em></a>
        <a ng-href="#/bartercart" ng-style="menuWidth" ng-if="!fixorderno">
            <i class="icon">&#xe68d;</i><em>购物车</em>
            <u>{{totalnum}}</u>
        </a>
          <a ng-href="#/checkReportfor{{fixorderType}}with{{orderno}}" ng-style="menuWidth" ng-if="fixorderno">
            <i class="icon">&#xe68d;</i><em>购物车</em>
            <u>{{totalnum}}</u>
        </a>
    </span>
    <a class="cart" ng-click="selectThis()" ng-if="!fixorderno">换此款</a>
    <a class="cart" ng-click="selectThis()" ng-if="fixorderno && !gooddetail.goodchildId">换此款</a>
    <a class="cart" ng-href="#/checkReportfor{{fixorderType}}with{{orderno}}" ng-if="fixorderno && gooddetail.goodchildId">换此款</a>
</footer>